package com.ruicar.afs.cloud.workflow.greatwall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.workflow.greatwall.entity.AfsGreatWallWorkflowNoticeException;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AfsGreatWallWorkflowNoticeExceptionMapper extends BaseMapper<AfsGreatWallWorkflowNoticeException> {
    @Update("delete from afs_greatwall_worlflow_notice_exception where flow_service_id=#{serviceId} and biz_data_id=#{bizDataId} ")
    int clearFailInfo(@Param("serviceId") String serviceId, @Param("bizDataId") String bizDataId);

    @Select("select count(1) from afs_greatwall_worlflow_notice_exception where notice_info=#{exceptionId}")
    Long countExceptionCount(@Param("exceptionId") String exceptionId);
}
